cmake_minimum_required(VERSION 3.10)
project(RunaraExample C)

set(CMAKE_C_STANDARD 99)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# Port -I flags from shell script
include_directories(
    vendor/glad/include
    /usr/include/harfbuzz
    /usr/include/freetype2
    /usr/include/libpng16
    /usr/include/glib-2.0
    /usr/lib/x86_64-linux-gnu/glib-2.0/include
    include/runara
)

# Port -L flag from shell script
link_directories(lib)

# Port source file (simple.c)
add_executable(runara_example simple.c)

# Port -l flags from shell script (keep original order)
target_link_libraries(runara_example
    glfw
    runara
    harfbuzz
    freetype
    m
    glad
)